package cn.yaboya.feign;

import cn.yaboya.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
* @Title:
* @Description: user服务feign
* @Author: LT
* @Version: 1.0
* @Date:  2022/7/28 21:30  
* @Parameters: 
* @Return 
*/

@FeignClient(name="user-server",fallbackFactory = UserFeignClientFallbackFactory.class)
public interface UserFeignClient {


    @GetMapping("/getUserById/{id}")
    User getUserById(@PathVariable Long id);


}
